<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="css/contractInfo.css"/>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
    <script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
    <script type="text/javascript" src="layer/layer.js"></script>
    <script type="text/javascript" src="js/handlebars-v3.0.3.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/mui.min.js"></script>

    <script type="text/javascript">
        window.onload = function () {
            var hosturl = "http://"+ window.location.host + "/"+ window.location.pathname.split('/')[1];
            var oUserInfo = document.getElementById('userInfo');
            var ocCntractInfo = document.getElementById('contractInfo');
            oUserInfo.onmousedown = function () {
                ocCntractInfo.style.backgroundColor = "#fff";
                ocCntractInfo.style.color = "#000";
                oUserInfo.style.backgroundColor = "#324e75";
                oUserInfo.style.color = "#fff";
            };
            ocCntractInfo.onmousedown = function () {
                oUserInfo.style.backgroundColor = "#fff";
                oUserInfo.style.color = "#000";
                ocCntractInfo.style.backgroundColor = "#324e75";
                ocCntractInfo.style.color = "#fff";
            }
            oUserInfo.onclick = function () {
                window.location.href = hosturl+'/userInfo.html';
            };
            ocCntractInfo.onclick = function () {
                window.location.href = hosturl+'/contractInfo.html';
            };
            //添加合同信息


        }

        window.onload = function () {
            var hosturl = "http://"+ window.location.host + "/"+ window.location.pathname.split('/')[1];
            var oLogout = document.getElementById('logout');
            oLogout.onclick = function () {
                window.location.href = hosturl+'/login.jsp';
            };
        }
    </script>
    <title>个人信息</title>
</head>

<body>
<div class="top">
    <div class="top-left">
        <p class="top-left">合同管理系统</p>
    </div>
    <div class="top-right">
        <p class="p1">欢迎用户<span class=""> 张三 </span>的到来 <a href="#" id="logout">注销</a></p>
        <p class="p2">您上次登录的时间是：2016-8-4 09:45</p>
    </div>
</div>
<div class="left-block">
    <ul>
        <li id="contractInfo" class="cleft-index">查看合同信息</li>
        <li id="userInfo" class="uleft-index">查看个人信息</li>
    </ul>
</div>
<div class="main-part">
    <!--<div>-->
    <!--<li class=""><input id="update-userInfo"class="right-btn" type="button" value="修改个人信息" /></li>-->
    <!--</div>-->
    <ul>
        <li class="right-label">个人信息</li>
        <li class=""><a href="javascript:add();"><input class="right-btn" type="button" id="addBtn" value="添加合同信息"/></a>
        </li>
        <li class="right-detial">用户名：12345</li>
        <li class="right-detial">姓名：张三</li>
        <li class="right-detial">部门：XXXX</li>
        <li class="right-detial">电话号码：XXX</li>
        <li class="right-detial">OA邮箱：XXX</li>
        <li class="right-detial">139邮箱：XXX</li>
    </ul>
</div>
</body>
</html>
